-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New language translation: Urdu #329
base: main
Are you sure you want to change the base?
Conversation
@asfand-dev I appreciate your thoughtful adjustments. It would be very appreciated if you could include the language detail in the readme file too. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the language name in the readme file too.
Simply we write everything from left to right. But in arabic or urdu, we have to write from right to left. thats all others are the same as usual. |
I know bro |
Good. |
Humidity is like |
Uhhh. I accidently forgot about the numberings in arabic bruh |
Bro literally wrote urdu using english letters |
@@ -1822,6 +1950,7 @@ const menuWidths = { | |||
idn: '415px', | |||
tr: '418px', | |||
fr: '490px', | |||
ur: '450px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, please remove
@@ -1835,7 +1964,7 @@ function localizeNumbers(text, language) { | |||
const map = numberMappings[language]; // Get the numeral map for the current language | |||
|
|||
// Define languages that use a comma as the decimal separator instead of a dot | |||
const specialDecimalLanguages = ['cs', 'it', 'pt', 'ru', 'tr', 'vi', 'uz', 'es', 'ko', 'idn', 'fr']; // Add more languages here as needed | |||
const specialDecimalLanguages = ['cs', 'it', 'pt', 'ru', 'tr', 'vi', 'uz', 'es', 'ko', 'idn', 'fr', 'ur']; // Add more languages here as needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please confirm for decimal separator (28.6), comma is used (=28,6)
isn't dot or ۔
(Arabic decimal separator) used?
@@ -495,6 +495,7 @@ function updateDate() { | |||
vi: `${dayName}, Ngày ${dayOfMonth} ${monthName}`, | |||
idn: `${dayName}, ${dayOfMonth} ${monthName}`, | |||
fr: `${dayName.substring(0, 3)}, ${dayOfMonth} ${monthName.substring(0, 3)}`, //Jeudi, 5 avril | |||
ur: `${dayName}, ${dayOfMonth} ${monthName}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urdu version comma ،
will be used, no?
@@ -630,6 +631,7 @@ function updatedigiClock() { | |||
vi: `${dayOfMonth} ${dayName}`, | |||
idn: `${dayOfMonth} ${dayName}`, | |||
fr: `${dayName} ${dayOfMonth}`, //Mardi 11 | |||
ur: `${dayName}, ${dayOfMonth}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here ،
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Humidity
and Feels
we have to change in the code.
See if you can add else we will do it.. also adding Urdu in Readme.md
Thank you for the contribution! Could you please consider changing the font for Urdu? You can use fonts from fonts.google.com as the current one looks a bit unappealing. And, please change |
hi @asfand-dev, please fix conflicts |
Description
Added Urdu language support and localization
Related Issues
Checklist